#include <iostream>
#include "Config/ConfigManager.h"
#include <log4cplus/log4cplus.h>

using namespace log4cplus;

int main()
{
    std::cout << 123 << std::endl;
    PropertyConfigurator::doConfigure(LOG4CPLUS_TEXT("log.properties"));
    Logger logger = Logger::getRoot();
    //Logger logger = Logger::getInstance(LOG4CPLUS_TEXT("test1"));
    LOG4CPLUS_TRACE(logger, LOG4CPLUS_TEXT("printMessages()"));
    LOG4CPLUS_DEBUG(logger, LOG4CPLUS_TEXT("This is a DEBUG message"));
    LOG4CPLUS_INFO(logger, LOG4CPLUS_TEXT("This is a INFO message"));
    LOG4CPLUS_WARN(logger, LOG4CPLUS_TEXT("This is a WARN message"));
    LOG4CPLUS_ERROR(logger, LOG4CPLUS_TEXT("This is a ERROR message"));
    LOG4CPLUS_FATAL(logger, LOG4CPLUS_TEXT("This is a FATAL message"));

    return 0;
}

